/**
 * Created by Administrator on 2018/2/5.
 */


myApp_.onPageInit('seller_my_center', function () {

});


SELLER_MY_CENTER = {};
SELLER_MY_CENTER.__INIT__ = function () {
    SELLER_MY_CENTER.do_get();
}
SELLER_MY_CENTER.do_get = function () {
    request_(
        url_('addons/execute/seller-App-seller_info'), {},
        function (d) {
            if (d.code == 0) {
                var context = d.data;
                mainView.router.load({
                    url: "src/seller/my_center/my_center.html",
                    context: context
                });
            } else {
                myApp_.confirm( "您还未创建店铺，点击确定创建" , function () {
                    go_("seller/examine");
                }, function () {
                    return false;
                });
            }
        }
    );
}